﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XTYAPI.PLC
{
    public class 完成率计算
    {
        /// <summary>
        /// 目标数量
        /// </summary>
        public int SetCount { get; set; } = 1;
        /// <summary>
        /// 当前数量
        /// </summary>
        public int NowCount { get; set; }

        public double 达成率 { get { return NowCount / SetCount; } }
        public double 未达成率 { get { return (SetCount - NowCount) / SetCount; } }
       
    }
}
